package com.xiaocg.link;

public class LinkModelTest {
    public static void main(String[] args) {
        LeaveRequest request = new LeaveRequest("张三",4,"病假");

        Handler handler1 = new GroupLeader();
        Handler handler2 = new Manager();
        Handler handler3 = new GeneralManager();
        handler2.setNextHandler(handler3);
        handler1.setNextHandler(handler2);

        handler1.commitNextHandler(request);


    }
}
